 <div class="container">
    <form class="form-signin"  action=""  method="post">
        <!-- <h2 class="form-signin-heading">协创网后台管理</h2> -->
        <label for="inputEmail" class="sr-only">手机号码：</label>
        <input type="text" id="mobile" name="mobile" value="18309259573" class="form-control" placeholder="手机号码" required autofocus><br>
        
        <label for="inputPassword" class="sr-only">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
        <input type="password" id="password" name="password" value="000000" class="form-control" placeholder="密码" required><br>
       

        <button  type="button" onclick="return login();" >立即登录</button>


    </form>
</div>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
function get_captcha(){
   var mobile = $('#mobile').val();
    $.get("captcha?mobile="+mobile,function(res){
        var json = eval('('+res+')');
        if(json.err > 0){
            alert(json.msg)
        }
        if(json.err == 0 ){
           alert('短信发送成功');
        }
    });
}
function login(){
    var valData = {
      'mobile'   :  $('#mobile').val(),
      'password' :  $('#password').val()
    }
    $.ajax({
        type : 'POST',
        url  : '<?php echo base_url('signup/log');?>',
        data : valData,
        success:function(msg){
            var json = eval('('+msg+')');
            if(json.err > 0){
                alert(json.msg)
            }
            if(json.err == 0 ){
               location.href = '<?php echo base_url('member');?>';
            }
        }
    });
}
</script>